@use "var.scss" as *;
@use "global.scss" as *;

.sidebar-list-content {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    /* 允许flex容器在需要时换行 */
}

.sidebar-list-item {
    width: 100%;
    height: 70px;
    /* 每个li占据一行 */
    display: flex;
    margin-bottom: 5px;
    cursor: pointer;
    /* 调整项之间的间距 */
}

.sidebar-article-img {
    margin-right: 20px;
    width: 90px;
    /* 调整图片与文字之间的间距 */
}

.sidebar-article-img img {
    border-radius: 2px;
    width: 100%;
    /*图片宽度占满容器*/
    height: auto;
    /*保持宽高比例*/
}

.sidebar-item-content {
    display: flex;
    flex-direction: column;

    .title {
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* 控制最大显示行数 */
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        /* 显示省略号 */
    }
    .title:hover {
        color: skyblue;
    }

    .date {
        margin: 0;
        font-size: 12px;
        color: #999;
        line-height: 14px;
    }
}
